Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Selector.all scope #214

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Fix Selector.all scope #214

wants to merge 1 commit into from

Conversation

Janiczek
Copy link
Collaborator

@Janiczek Janiczek commented Mar 1, 2023

fixes #213

So far I've added tests to map this behaviour, of which the interesting one related to #213 fails (L201-214).

It seems Selector.all [...] delegates the list back to Selector.Internal.queryAll, which allows finding the child selector anywhere in the tree.

This goes against our assumption in Elm Slack:

Screenshot 2023-03-01 at 20 46 19

It might be that 🅰️ the behaviour of Selector.all is correct and our assumption was wrong
or 🅱️ Selector.all is wrong and we need to make a breaking change in behaviour.
Or maybe there is a way to add some new all-like primitive that will not allow mixing nesting levels, thus not a breaking change.

@Janiczek Janiczek marked this pull request as draft March 1, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selector.all does not fail if any descendants match the given selectors
1 participant